//手机号校验
const isPoneAvailable = (str) => {
	var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
	if (!myreg.test(str)) {
		return false;
	} else {
		return true;
	}
}
const getSumMath=(matha,mathb,fuhao="+")=>{
	if(fuhao == "+"){
		return matha + mathb
	}else if(fuhao == "-"){
		return matha - mathb
	}else if(fuhao == "*"){
		return matha * mathb
	}else if(fuhao == "/"){
		return matha/mathb
	}else{
		return this.$uni.gettitle('您输入的数据有误!')
	}
}

export default {
	isPoneAvailable,
	getSumMath
}